home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / GMS / Includes / games / misc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-26  |  3.1 KB  |  110 lines

  1. #ifndef GMS_MISC_H
  2. #define GMS_MISC_H TRUE
  3.  
  4. /*
  5. **    $VER: misc.h V0.6B
  6. **
  7. **      (C) Copyright 1996-1997 DreamWorld Productions.
  8. **          All Rights Reserved
  9. */
  10.  
  11. /***********************************************************************************
  12. ** Object entries.
  13. */
  14.  
  15. struct ObjectEntry { /* Entry stucture for GetObjectList() */
  16.   char  *Name;       /* Pointer to the name, may be NULL */
  17.   APTR  Object;      /* Object is returned here */
  18. };
  19.  
  20. struct DataHeader {  /* Private structure for object headers */
  21.   ULONG Type;        /* Type of object, eg STRC, CODE, DATA */
  22.   ULONG Next;        /* Offset towards next object */
  23. /*char Name[];          The name of the object */
  24. };
  25.  
  26. /***********************************************************************************
  27. ** Choose one of these for calling Set_Interrupt()
  28. */
  29.  
  30. #define INTB_INTEN   14   /* Master interrupt (enable only ) */
  31. #define INTB_EXTER   13   /* External interrupt */
  32. #define INTB_DSKSYNC 12   /* Disk re-SYNChronized */
  33. #define INTB_RBF     11   /* serial port Receive Buffer Full */
  34. #define INTB_AUD3    10   /* Audio channel 3 block finished */
  35. #define INTB_AUD2     9   /* Audio channel 2 block finished */
  36. #define INTB_AUD1     8   /* Audio channel 1 block finished */
  37. #define INTB_AUD0     7   /* Audio channel 0 block finished */
  38. #define INTB_BLIT     6   /* Blitter finished */
  39. #define INTB_VERTB    5   /* Start of Vertical Blank */
  40. #define INTB_COPER    4   /* Coprocessor */
  41. #define INTB_PORTS    3   /* I/O Ports and timers */
  42. #define INTB_SOFTINT  2   /* software interrupt rest */
  43. #define INTB_DSKBLK   1   /* Disk Block done */
  44. #define INTB_TBE      0   /* serial port Transmit Buffer Empty */
  45.  
  46. /***********************************************************************************
  47. ** Special Keypresses that can be returned from ReadKey() are listed here.  All
  48. ** other keys can be considered to be in ASCII format.
  49. */
  50.  
  51. struct Keys {
  52.   WORD  KP_ID;
  53.   BYTE  KP_Key1;
  54.   BYTE  KP_Key2;
  55.   BYTE  KP_Key3;
  56.   BYTE  KP_Key4;
  57. };
  58.  
  59. #define K_SCS     0x80       /* Screen switch (LEFTAMIGA + M) */
  60. #define K_DEL     0x81
  61. #define K_HELP    0x82
  62.  
  63. #define K_LSHIFT  0x83
  64. #define K_RSHIFT  0x84
  65. #define K_CAPS    0x85
  66. #define K_CTRL    0x86
  67. #define K_LALT    0x87
  68. #define K_RALT    0x88
  69. #define K_LAMIGA  0x89
  70. #define K_RAMIGA  0x8a
  71.  
  72. #define K_F1      0x8b
  73. #define K_F2      0x8c
  74. #define K_F3      0x8d
  75. #define K_F4      0x8e
  76. #define K_F5      0x8f
  77. #define K_F6      0x90
  78. #define K_F7      0x91
  79. #define K_F8      0x92
  80. #define K_F9      0x93
  81. #define K_F10     0x94
  82. #define K_F11     0x95
  83. #define K_F12     0x96
  84. #define K_F13     0x97
  85. #define K_F14     0x98
  86. #define K_F15     0x99
  87. #define K_F16     0x9a
  88. #define K_F17     0x9b
  89. #define K_F18     0x9c
  90. #define K_F19     0x9d
  91. #define K_F20     0x9e
  92.  
  93. #define C_UP      0x9f
  94. #define C_DOWN    0xa0
  95. #define C_RIGHT   0xa1
  96. #define C_LEFT    0xa2
  97.  
  98. #define K_SRIGHT  0xa3       /* Special key on right */
  99. #define K_SLEFT   0xa4       /* Special key on left */
  100.  
  101. /* --- Special keys that are recognised under ASCII (here for convenience)*/
  102.  
  103. #define K_BAKSPC 08
  104. #define K_TAB    09
  105. #define K_ENTER  10
  106. #define K_RETURN 10
  107. #define K_ESC    0x1b
  108.  
  109. #endif
  110.